import { Type } from 'class-transformer';
import { ValidateNested, IsArray } from 'class-validator';
import { CreateHouseDto } from './create-house.dto';

export class CreateHousesBatchDto {
  @IsArray()
  @ValidateNested({ each: true })
  @Type(() => CreateHouseDto)
  houses: CreateHouseDto[];
}